package com.gosling.cloudspace.tools;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.CountDownLatch;

/**
 * @author lihonglin
 * @date 2023/2/24 15:42
 */
public class PoolTool {

    private static Logger logger = LoggerFactory.getLogger(PoolTool.class);

    public static void countDownLatchAwait(CountDownLatch countDownLatch){
        try {
            logger.info("线程任务阻塞------->>>>>>>>>");
            countDownLatch.await();
        } catch (InterruptedException e) {
            logger.error("中断异常抓取:{}", e);
            e.printStackTrace();
        }
    }

}
